﻿using System;
using System.Collections.Generic;

namespace MessagePack.Formatters
{
	// Token: 0x02000011 RID: 17
	public class LinkedListFormatter<T> : CollectionFormatterBase<T, LinkedList<T>, LinkedList<T>.Enumerator, LinkedList<T>>
	{
		// Token: 0x06000032 RID: 50 RVA: 0x00002BA1 File Offset: 0x00000FA1
		protected override void Add(LinkedList<T> collection, int index, T value)
		{
			collection.AddLast(value);
		}

		// Token: 0x06000033 RID: 51 RVA: 0x00002BAB File Offset: 0x00000FAB
		protected override LinkedList<T> Complete(LinkedList<T> intermediateCollection)
		{
			return intermediateCollection;
		}

		// Token: 0x06000034 RID: 52 RVA: 0x00002BAE File Offset: 0x00000FAE
		protected override LinkedList<T> Create(int count)
		{
			return new LinkedList<T>();
		}

		// Token: 0x06000035 RID: 53 RVA: 0x00002BB5 File Offset: 0x00000FB5
		protected override LinkedList<T>.Enumerator GetSourceEnumerator(LinkedList<T> source)
		{
			return source.GetEnumerator();
		}
	}
}
